package com.tdcoding.chat.entities;

import io.protostuff.Tag;

public class UserInfo extends BaseInfo {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Tag(value=7)
	private int userLevel;// 用户等级
	@Tag(value=8)
	private int userStatus;// 用户状态
	@Tag(value=9)
	private int identity;// 用户身份 0管理员；1普通；2VIP
	@Tag(value=10)
	private int lplatform;// 登录平台 0网站；应用；手机；会员录入
	@Tag(value=11)
	private int rplatform;// 注册平台 0网站；应用；手机；会员登录
	@Tag(value=12)
	private int isFriend;// 是否好友
	@Tag(value=13)
	private int isFollow;// 是否关注
	@Tag(value=14)
	private int allowAdd ;// 是否允许加好友
	
	@Tag(value=15)
	private String password;
	@Tag(value=16)
	private String sex;
	@Tag(value=17)
	private String email;
	@Tag(value=18)
	private String starsign;
	@Tag(value=19)
	private String brithday;
	@Tag(value=20)
	private String signature;
	@Tag(value=21)
	private String telephone;
	@Tag(value=22)
	private String creationDate;
	@Tag(value=23)
	private String modifiedDate;

	@Tag(value=24)
	private RegionInfo location; // 现在地理位置
	
	public int getUserStatus() {
		return userStatus;
	}
	public void setUserStatus(int userStatus) {
		this.userStatus = userStatus;
	}
	public void setAllowAdd(int allowAdd) {
		this.allowAdd = allowAdd;
	}
	public int getUserLevel() {
		return userLevel;
	}
	public void setUserLevel(int userLevel) {
		this.userLevel = userLevel;
	}
	public int getIdentity() {
		return identity;
	}
	public void setIdentity(int identity) {
		this.identity = identity;
	}
	public int getLplatform() {
		return lplatform;
	}
	public void setLplatform(int lplatform) {
		this.lplatform = lplatform;
	}
	public int getRplatform() {
		return rplatform;
	}
	public void setRplatform(int rplatform) {
		this.rplatform = rplatform;
	}
	public int getIsFriend() {
		return isFriend;
	}
	public void setIsFriend(int isFriend) {
		this.isFriend = isFriend;
	}
	public int getIsFollow() {
		return isFollow;
	}
	public void setIsFollow(int isFollow) {
		this.isFollow = isFollow;
	}
	public int getAllowAdd() {
		return allowAdd;
	}
	public void setAllowedAdd(int allowAdd) {
		this.allowAdd = allowAdd;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getStarsign() {
		return starsign;
	}
	public void setStarsign(String starsign) {
		this.starsign = starsign;
	}
	public String getBrithday() {
		return brithday;
	}
	public void setBrithday(String brithday) {
		this.brithday = brithday;
	}
	public String getSignature() {
		return signature;
	}
	public void setSignature(String signature) {
		this.signature = signature;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(String creationDate) {
		this.creationDate = creationDate;
	}
	public String getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(String modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public RegionInfo getLocation() {
		return location;
	}
	public void setLocation(RegionInfo location) {
		this.location = location;
	}
	@Override
	public String toString() {
		return  super.toString()+"【】UserInfo [userLevel=" + userLevel + ", identity=" + identity + ", lplatform=" + lplatform
				+ ", rplatform=" + rplatform + ", isFriend=" + isFriend + ", isFollow=" + isFollow + ", allowAdd="
				+ allowAdd + ", password=" + password + ", sex=" + sex + ", email=" + email + ", starsign=" + starsign
				+ ", brithday=" + brithday + ", signature=" + signature + ", telephone=" + telephone + ", creationDate="
				+ creationDate + ", modifiedDate=" + modifiedDate + ", location=" + location+"]";
	}
	
}
